package org.spring.springboot.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.spring.springboot.entity.Schedule;

import java.util.List;

@Mapper
public interface ScheduleMapper {

    List<Schedule> selectAll();

    List<Schedule> selectValid();

    boolean insertOne(Schedule setting);

    Schedule selectOne(Integer jobId);

    boolean delete(Integer jobId);

    List<Schedule> selectOperationJobs(int maxJobId);

    void updateValid(Integer jobId, String y);
}
